/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.chl.sasanf.crud;

import edu.chl.sasanf.jpa.nbp.Product;
import javax.annotation.PostConstruct;
import javax.ejb.Stateless;
import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;

/**
 *
 * @author hansena
 */
@Stateless
public class DatabaseSB {

    /*@PersistenceContext(unitName = "webshop_pu_test")
    private EntityManager em;
    private IDatabase db;

    @PostConstruct
    public void init() {
        db = DatabaseImpl.getInstance(em);
    }

    void create(Product product) {
        db.create(product);
    }

    void edit(Product product) {

    }*/
}
